import Vue from 'vue'
import Router from 'vue-router'
//import HelloWorld from '@/components/HelloWorld'
import Users from '../views/Users.vue'
import ElementUI from 'element-ui'
import Orders from '../views/Orders.vue'
import Notices from '../views/Notices.vue'
import App from '@/App'
import Index from '../views/index.vue'
import VueRouter from 'vue-router'
import AddUser from '../views/AddUser.vue'
import AddNotice from '../views/AddNotice.vue'
import UpdateNotice from '../views/UpdateNotice.vue'
import UpdateOrder from '../views/UpdateOrder.vue'
import UpdateUser from '../views/UpdateUser.vue'
import login from '../views/login.vue'
import deleteUser from '../views/deleteUser.vue'
import deleteUser1 from '../views/deleteUser1.vue'
import Notices1 from '../views/Notices1.vue'
import expressCompany_list from '../views/expressCompany_list.vue'
import activityinfo from '../views/activityinfo.vue'
import updateactivityinfo from '../views/updateactivityinfo.vue'
import addactivityinfo from '../views/addactivityinfo.vue'
//expressCompany_list
Vue.use(Router)
Vue.use(ElementUI)

export default new Router({
  routes: [
    {
      path: '/',
      show: false,
      component: login,
    },

    {
      path: '/users',
      name: "用户管理",
      component: Index,
      //redirect:"/users",
      show: true,
      children: [
        {
          path: "/users",
          name: "用户界面",
          show: true,
          component: Users
        },
        {
          path: "/updateUser",
          name: "修改用户",
          show: true,
          component: UpdateUser
        },
        {
          path: "/addUser",
          name: "添加用户",
          show: true,
          component: AddUser
        },
        {
          path: "/deleteUser",
          name: "删除用户",
          show: true,
          component: deleteUser
        },
        {
          path: "/deleteUser1",
          name: "删除用户1",
          show: true,
          component: deleteUser1
        },
      ]
    },
    {
      path: "/navigation",
      name: "订单管理",
      component: Index,
      show: true,
      children: [
        {
          path: "/orders",
          name: "订单界面",
          show: true,
          component: Orders
        },
        {
          path: "/updateOrder",
          name: "修改订单",
          show: true,
          component: UpdateOrder
        },
        
      ]
    },
    {
      path: "/navigation2",
      name: "公告管理",
      component: Index,
      show: true,
      children: [
        {
          path: "/notices",
          name: "公告界面",
          show: true,
          component: Notices
        },
        {
          path: "/updateNotice",
          name: "修改公告",
          show: true,
          component: UpdateNotice
        },
        {
          path: "/addNotice",
          name: "添加公告",
          show: true,
          component: AddNotice
        },
        {
          path: "/notices1",
          name: "公告界面1",
          show: true,
          component: Notices1
        },
        {
          path: "/expressCompany_list",
          name: "公告界面2",
          show: true,
          component: expressCompany_list
        },
      ]
    },
    {
      path: "/navigation3",
      name: "活动基本信息管理",
      component: Index,
      show: true,
      children:[
        {
          path: "/activityinfo",
          name: "活动基本信息",
          show: true,
          component: activityinfo
        },
        {
          path: "/updateactivityinfo",
          name: "修改活动基本信息",
          show: true,
          component: updateactivityinfo
        },
        {
          path: "/addactivityinfo",
          name: "添加活动基本信息",
          show: true,
          component: addactivityinfo
        },
        
      ]

    }
    

  ]
})
